//
//  EDSCustomRequest.h
//  DrivieSchoolStudents
//
//  Created by TangBin on 2019/5/29.
//  Copyright © 2019 班文政. All rights reserved.
//

#import "TYZRequest.h"
#import "EDSRespondDataEntity.h"
#import "WDBaseRspModel.h"

NS_ASSUME_NONNULL_BEGIN

// 请求完成后调用
typedef void(^ _Nullable RequestCompletionBlock)(EDSRespondDataEntity *respond);

//#define EDS_NETWORK_SUCCESS @"200" // 成功
//#define EDS_NETWORK_NETFFAILED @"-9999" // 网络问题

NS_ENUM(NSInteger)
{
    EDS_NETWORK_SUCCESS = 200, ///< 成功
    EDS_NETWORK_TOKEN_NULL = 3001, ///< 没有token
    EDS_NETWORK_TOKEN_EXPIRE = 3002, ///< token过期或无效
    EDS_NETWORK_NETFFAILED = -9999, ///< 网络问题
};


@interface EDSCustomRequest : TYZRequest

@property (nonatomic, strong) Class rspClass; ///< 返回数据的model

@property (nonatomic, strong) Class recordsRspClass;

@end

NS_ASSUME_NONNULL_END
